{% extends 'base.html' %}
{% block navbar %}
# 页面nav
    <nav class="navbar navbar-default">
        <div class="container">

            <ul class="nav nav-pills nav-justified">
                <li role="presentation"><a href="http://127.0.0.1:5000/entry">天气查询</a></li>
                <li role="presentation"><a href="http://127.0.0.1:5000/traffic">路况查询</a></li>
                <li role="presentation"><a href="http://127.0.0.1:5000/blog">出行笔记</a></li>
                <li role="presentation" class="active"><a href="http://127.0.0.1:5000/viewlog">系统日志</a></li>
            </ul>

        </div>
    </nav>
{% endblock %}
{% block app_content %}
# 日志表格
    <div class="page-header">
    <h1>系统日志 <small>Who visited the website today？</small></h1>
    </div>
    <div>len × {{ the_len }}</div>
    <table border="2">
    <tr style="padding:30px;" >
        <td style="text-align: center">用户请求</td>
        <td style="text-align: center">客户端IP</td>
        <td style="text-align: center">代理访问</td>
        <td style="text-align: center">请求结果</td>
    </tr>
	<tr>
        {%for row_title in the_titles%}
		<td>{{ row_title }}</td>
		{%endfor%}
	</tr>
    {%for log_row in the_data%}
	<tr>
		{%for item in log_row%}
		<td>
			{{ item }}
		</td>
		{% endfor %}
	</tr>
	{% endfor %}
</table>

{% endblock %}